<style type="text/css">
.form{
        padding: 15px;
    }
    
</style>
<div class="bjui-pageHeader">
    <div class="glyphicon glyphicon-th-large">网站设置</div>
</div>
<div class="bjui-pageContent">
   <div class="main">
   <style>#pic1{float: right;}.uploadify {background: url("__PUBLIC__/UI/plugins/uploadify/scripts/uploadico.gif")  5px center  no-repeat;    color: #999;border: none;position:relative; }.uploadify:hover {background: url("__PUBLIC__/uploadify/uploadico.gif") 5px center no-repeat;}</style>
           
            <script type="text/javascript">
                $(function() {
                    $('#pic1').uploadify({
                        'fileSizeLimit' : '3000KB',
                        'buttonText' :'点击上传LOGO',
                        'buttonClass' : 'uploadify',
                        'swf'      : '__PUBLIC__/UI/plugins/uploadify/scripts/uploadify.swf',
                        'uploader' : "{:U('Site/upload')}",
                        'width':'120',
                        'fileTypeDesc' : 'Image Files',
                        'fileTypeExts' : '*.gif; *.jpg; *.bmp; *.jpeg; *.png',
                        'multi': false,
                        'auto' : true,
                        'formData' : { 'session_id' : '<?php echo session_id();?>' },
                        onUploadSuccess : function(file, data, response) {
                            var msg = $.parseJSON(data);
                            if (msg.status) {
                              $('#upload_preview').attr('src',msg.path);
                              $('#cfg_weblogo').attr('value',msg.path);
                            }else{
                              alert(data.msg);
                            }                  
                      }
                    });
                });
            </script>
        
        <div class="form">
            <form id="form_do" name="form_do" action="{:U('Site/siteInfo')}" data-toggle="validate">
            	<table class="table table-bordered table-hover table-striped table-top">
                <tr>
                    <td>网站名称：</td>
                    <td>
                        <input type="text" name="cfg_webname" class="input-nm" value="{$Think.config.cfg_webname}" size="30" data-rule="required" data-tip="请填写网站名称" data-ok="OK" placeholder="网站名称"/>
                    </td>
                    <td class="desc"></td>
                    <td>cfg_webname</td>
                </tr>
                <tr>
                    <td>网站LOGO：</td>
                    <td>
                        <img src="{$Think.config.cfg_weblogo|default_logo}" id="upload_preview" height="35">
                        <input type="hidden" name="cfg_weblogo" id="cfg_weblogo" class="input-nm" value="{$Think.config.cfg_weblogo}" size="30" data-rule="required" data-tip="请上传网站LOG" data-ok="OK" placeholder="网站LOGO"/><input id="pic1" type="hidden" >
                    </td>
                    <td class="desc"></td>
                    <td>cfg_weblogo</td>
                </tr>
                <tr>
                    <td>网站主页：</td>
                    <td>
                        <input type="text" name="cfg_weburl" class="input-nm" size="30" value="{$Think.config.cfg_weburl}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_weburl</td>
                </tr>
                <tr>
                    <td>网站标题：</td>
                    <td>
                        <input type="text" name="cfg_webtitle" class="input-nm" size="30" value="{$Think.config.cfg_webtitle}" />
                    </td>
                    <td class="desc">站点首页title的设置</td>
                    <td>cfg_webtitle</td>
                </tr>

                <tr>
                    <td>站点关键词：</td>
                    <td>
                        <input type="text" name="cfg_keywords" class="input-nm" size="30" value="{$Think.config.cfg_keywords}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_keywords</td>
                </tr>
                <tr>
                    <td>站点描述：</td>
                    <td>
                        <textarea name="cfg_description" class="form-control" cols="30" style="width:423px">{$Think.config.cfg_description}</textarea>
                        <td class="desc"></td>
                        <td>cfg_description</td>
                    </td>
                </tr>
                <tr>
                    <td>网站版权信息：</td>
                    <td>
                        <textarea name="cfg_powerby" cols="30" style="width:423px">{$Think.config.cfg_powerby}</textarea>
                       
                    </td>
                    <td class="desc"></td>
                    <td>cfg_powerby
                    </td>
                </tr>
                <tr>
                    <td>网站备案号：</td>
                    <td>
                        <input type="text" name="cfg_beian" size="30" value="{$Think.config.cfg_beian}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_beian</td>
                </tr>
                <tr>
                    <td>网站模版：</td>
                    <td>
                        <select name="cfg_theme" data-toggle="selectpicker" data-width="200" size="30">
                            <foreach name='styleDirList' item='v'>
                            <option value="{$v}" <if condition='$Think.config.cfg_theme eq $v'>selected="selected"</if>>{$v}</option>
                            </foreach>
                        </select>
                    </td>
                    <td class="desc"></td>
                    <td>cfg_theme</td>
                </tr>

                <tr>
                    <td>联系地址：</td>
                    <td>
                        <input type="text" name="cfg_address" class="input-nm" size="30" value="{$Think.config.cfg_address}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_address</td>
                </tr>

                <tr>
                    <td>联系电话：</td>
                    <td>
                        <input type="text" name="cfg_phone" class="input-nm" size="30" value="{$Think.config.cfg_phone}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_phone</td>
                </tr>
                <tr>
                    <td>客服QQ：</td>
                    <td>
                        <input type="text" name="cfg_qq" class="input-nm" size="30" value="{$Think.config.cfg_qq}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_qq</td>
                </tr>

                <tr>
                    <td>客服邮箱：</td>
                    <td>
                        <input type="text" name="cfg_email" class="input-nm" size="30" value="{$Think.config.cfg_email}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_email</td>
                </tr>

                <tr>
                    <td>cookie加密码：</td>
                    <td>
                        <input type="text" name="cfg_cookie_encode" class="input-nm" size="30" value="{$Think.config.cfg_cookie_encode}" />
                    </td>
                    <td class="desc"></td>
                    <td>cfg_cookie_encode</td>
                </tr>

                <tr>
                    <td>统计代码：</td>
                    <td>
                        <textarea name="cfg_tongji" class="tarea_default" cols="30" style="width:423px">{$Think.config.cfg_tongji}</textarea>
                        <br/>
                        
                    </td>
                    <td class="desc"></td>
                    <td>cfg_tongji
                    </td>
                </tr>
<tr>
                	<td colspan="4">手机访问</td>
                </tr>
                <tr>
                    <td>自动跳转：</td>
                    <td>
                        <input type="radio" data-toggle="icheck" data-label="开启" name="cfg_mobile_auto" value="1" <if condition="C('cfg_mobile_auto') eq 1">checked="checked"</if>> 
                        <input type="radio" data-toggle="icheck" data-label="关闭" name="cfg_mobile_auto" value="0" <if condition="C('cfg_mobile_auto') eq 0">checked="checked"</if>>
                    </td>
                    <td class="desc"></td>
                    <td>cfg_mobile_auto</td>
                </tr>
<tr>
                	<td colspan="4">后台登录地址保护</td>
                </tr>
                <tr>
                    <td>后台地址：</td>
                    <td>
                        <input type="text" name="cfg_hou_tai" value="{$Think.config.cfg_hou_tai}" class="input-nm" size="30">
                        
                        <br>
                        普通模式:{$Think.config.cfg_weburl}/index.php?m={$Think.config.cfg_hou_tai}<br>
                        PATHINFO模式:{$Think.config.cfg_weburl}/index.php/{$Think.config.cfg_hou_tai}<br>
                        REWRITE模式:{$Think.config.cfg_weburl}/{$Think.config.cfg_hou_tai}<br>
                        兼容模式:{$Think.config.cfg_weburl}/index.php?s=/{$Think.config.cfg_hou_tai}  
                    </td>
                    <td class="desc">

                     只能以小写，字母(拼音)
                    </td>
                    <td>cfg_hou_tai</td>
                </tr>


                <!--!Email设置开始 -->
<tr>
                	<td colspan="4">STMP发送邮件配置</td>
                </tr>
                    <tr>
                        <td>发件邮箱地址：</td>
                        <td>
                            <input type="text" name="cfg_email_from" class="input-nm" size="30" value="{$Think.config.cfg_email_from}" />
                        </td>
                        <td class="desc"></td>
                        <td>cfg_email_from</td>
                    </tr>   
                    <tr>
                        <td>发件人名称：</td>
                        <td>
                            <input type="text" name="cfg_email_from_name" class="input-nm" size="30" value="{$Think.config.cfg_email_from_name}" />
                        </td>
                        <td class="desc"></td>
                        <td>cfg_email_from_name</td>
                    </tr>

                    <tr>
                        <td>STMP服务器：</td>
                        <td>
                            <input type="text" name="cfg_email_host" class="input-nm" size="30" value="{$Think.config.cfg_email_host}" />
                        </td>
                        <td class="desc"></td>
                        <td>cfg_email_host</td>
                    </tr>
                    <tr>
                        <td>服务器端口：</td>
                        <td>
                            <input type="text" name="cfg_email_port" class="input-nm" size="30" value="{$Think.config.cfg_email_port}" />
                        </td>
                        <td class="desc"></td>
                        <td>cfg_email_port</td>
                    </tr>
                    <tr>
                        <td>邮箱帐号：</td>
                        <td>
                            <input type="text" name="cfg_email_loginname" class="input-nm" size="30" value="{$Think.config.cfg_email_loginname}" />
                        </td>
                        <td class="desc"></td>
                        <td>cfg_email_loginname</td>
                    </tr>
                    <tr>
                        <td>邮箱密码：</td>
                        <td>
                            <input type="password" name="cfg_email_password" class="input-nm" size="30" value="{$Think.config.cfg_email_password}" />
                        </td>
                        <td class="desc"></td>
                        <td>cfg_email_password</td>
                    </tr>

                    <tr>
                        <td><font color="red">接收邮箱：</font></td>
                        <td>
                            <input type="text" name="cfg_email_get" class="input-nm" size="30" value="{$Think.config.cfg_email_get}" />
                        </td>
                        <td class="desc"></td>
                        <td>cfg_email_get</td>
                    </tr>


                <!--!Email设置结束 -->
				<tr>
                	<td colspan="4">接收邮件通知开关</td>
                </tr>
                <tr>
                    <td>后台登录通知：</td>
                    <td>
                        <input type="radio" data-toggle="icheck" name="cfg_login_auto" value="1" <if condition="C('cfg_login_auto') eq 1">checked="checked"</if>>开启 
                        <input type="radio" data-toggle="icheck" name="cfg_login_auto" value="0" <if condition="C('cfg_login_auto') eq 0">checked="checked"</if>>关闭
                    </td>
                    <td class="desc"></td>
                    <td>cfg_login_auto</td>
                </tr>
                <tr>
                    <td>留言信息通知：</td>
                    <td>
                        <input type="radio" data-toggle="icheck" name="cfg_book_auto" value="1" <if condition="C('cfg_book_auto') eq 1">checked="checked"</if>>开启 
                        <input type="radio" data-toggle="icheck" name="cfg_book_auto" value="0" <if condition="C('cfg_book_auto') eq 0">checked="checked"</if>>关闭
                    </td>
                    <td class="desc"></td>
                    <td>cfg_book_auto</td>
                </tr>

                <tr>
                    <td>会员注册邮箱验证</td>
                    <td>
                        <input type="radio" data-toggle="icheck" name="cfg_member_verifyemail" value="1" <if condition="C('cfg_member_verifyemail') eq 1">checked="checked"</if>>开启 
                        <input type="radio" data-toggle="icheck" name="cfg_member_verifyemail" value="0" <if condition="C('cfg_member_verifyemail') eq 0">checked="checked"</if>>关闭
                    </td>
                    <td class="desc"></td>
                    <td>cfg_member_verifyemail</td>
                </tr>
                <tr>
                	<td colspan="4">会员中心设置</td>
                </tr>
                <tr>
                    <td>会员中心开关：</td>
                    <td>
                        <input type="radio" data-toggle="icheck" name="cfg_user_auto" value="1" <if condition="C('cfg_user_auto') eq 1">checked="checked"</if>>开启 
                        <input type="radio" data-toggle="icheck" name="cfg_user_auto" value="0" <if condition="C('cfg_user_auto') eq 0">checked="checked"</if>>关闭
                    </td>
                    <td class="desc"></td>
                    <td>cfg_user_auto</td>
                </tr>


                </table>
            </form>
        </div>
    </div>
</div>
<div class="bjui-pageFooter">
    <ul>

        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <li><button data-icon="save" class="btn btn-default" type="submit">保存</button></li>
    </ul>
</div>